package com.example.flow.biz.interceptor.approval.check;

import com.example.flow.dao.model.FlowOrder;
import com.example.flow.flow.FlowNodeInterceptor;
import com.example.flow.flow.core.Execution;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 测试用户审批 start拦截器
 *
 * @author admin
 * @date 2021/1/30
 */
@Service
public class TestStartCheckInterceptor implements FlowNodeInterceptor {
    private static Logger log = LoggerFactory.getLogger(TestStartCheckInterceptor.class);

    @Override
    public void intercept(Execution execution) {
        FlowOrder order = execution.getOrder();
        log.info("orderId:{}", order.getOrderId());
        log.info("执行TestCheckInterceptor");
    }
}
